class Solution(object):
    def twoEggDrop(self, n):
        t = int((2 * n) ** 0.5)
        if t * (t + 1) >= 2 * n:
            return t
        else:
            return t + 1